Skip to main content

record sound

Type

command

Summary

Starts recording from the system's audio input to a file.

Syntax

record sound file <filePath>

Description

Use the record sound command to to record audio from the user's microphone.

While recording is going on, the recording property is set to true. To stop recording, use the stop recording command or set the recording to false.

The technical specifications of the recording are determined by the settings of the recordFormat, recordChannels, recordRate, and recordSampleSize properties.

note

If you choose to record to a file that already exists, the record sound command will overwrite the existing file, it will not append the new recording to the end.

note

Android and iOS do not support background audio recording. The recorder will be stopped when the app is put into the background on android. On iOS the recorder will be paused when the app is put into the background.

Parameters

NameTypeDescription

filePath

The name and location of the file that will hold the recorded sound data.

Examples

record sound file "Testing"
record sound file it

command: play, stop recording

function: recordLoudness, format, recordCompressionTypes

glossary: property, audio clip, file path, command

keyword: file, player

property: filename, properties, recording, recordCompression, recordSampleSize, recordChannels, recordFormat, recordInput, recordRate

Compatibility and Support

Introduced

LiveCode 1.1

OS

mac

windows

ios

android

web

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?